package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysKind;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 系统分类表 * <!-- end-user-doc -->
 */
public class TsysKindTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysKindTable TSYS_KIND_TABLE = new TsysKindTable();

	/**
	 * <!-- begin-user-doc --> 分类编号 * <!-- end-user-doc -->
	 */
	public final Column KIND_CODE = new Column(this, "kind_code");
	/**
	 * <!-- begin-user-doc --> 分类类型 * <!-- end-user-doc -->
	 */
	public final Column KIND_TYPE = new Column(this, "kind_type");
	/**
	 * <!-- begin-user-doc --> 分类名称 * <!-- end-user-doc -->
	 */
	public final Column KIND_NAME = new Column(this, "kind_name");
	/**
	 * <!-- begin-user-doc --> 上级 * <!-- end-user-doc -->
	 */
	public final Column PARENT_CODE = new Column(this, "parent_code");
	/**
	 * <!-- begin-user-doc --> 助记符 * <!-- end-user-doc -->
	 */
	public final Column MNEMONIC = new Column(this, "mnemonic");
	/**
	 * <!-- begin-user-doc --> 树索引码 * <!-- end-user-doc -->
	 */
	public final Column TREE_IDX = new Column(this, "tree_idx");
	/**
	 * <!-- begin-user-doc --> 备注 * <!-- end-user-doc -->
	 */
	public final Column REMARK = new Column(this, "remark");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysKindTable() {
		super("tsys_kind");
	}

	public TsysKindTable(String schemaName) {
		super(schemaName, "tsys_kind");
	}

	public TsysKindTable(String schemaName, String alias) {
		super(schemaName, "tsys_kind", alias);
	}

	public TsysKindTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_kind", alias, withAs);
	}

	public Class<TsysKind> getPojoType() {
		return TsysKind.class;
	}

	static {
		mappings.put("kindCode", "kind_code");
		mappings.put("kindType", "kind_type");
		mappings.put("kindName", "kind_name");
		mappings.put("parentCode", "parent_code");
		mappings.put("mnemonic", "mnemonic");
		mappings.put("treeIdx", "tree_idx");
		mappings.put("remark", "remark");

	}

}
